Custom Ink Picture Element

The Custom Ink Picture Element allows you to write or draw on a form, e.g. to collect a written signature or to annotate a picture. The Element allows the user to write or draw with their finger or using a mouse within the boundaries of a defined rectangle. The Element can have a blank rectangle or you can display a background image over which the user can write or draw, e.g. to indicate the position of something relative to the image.

When you add a Custom Ink Picture Element to your form, the default Element looks like this:

Picture showing default Ink Picture Element.

Click on image above to display larger

 

The buttons along the bottom of the drawing rectangle are:

Picture showing the Clear All button. - Clear all ink from the drawing rectangle.

Picture showing the Undo Last Change button. - Undo the last change. You can undo as many changes as you want to, by clicking or tapping this Undo button multiple times.

Picture showing the Decrease Line Thickness button. - Decrease the thickness of the line drawn.

Picture showing the Increase Line Thickness button. - Increase the thickness of the line drawn.

Picture showing Line Colour Choices. - Choose the colour of the line to draw. You can draw lines of different colours within the drawing rectangle.

 

If you want to provide a background image, you can either specify a static image which will always remain the same, or you can read the picture in from a Datasource, in which case the picture may change with each new record. The image will be resized to fit within the drawing rectangle.

If you include a background image, when a user submits their form, a 'flattened' image of the background picture together with any pen strokes added by the user will be written to the output mapped Datasource column. If you read-in an image which has previously been annotated within a Custom Ink Picture Element and saved to a Datasource, you cannot edit the previous pen strokes.

If you hide and then reshow a Custom Ink Picture Element on which the user has drawn, the Undo button will not be able to undo the user's previous drawing strokes line by line.

 

You can see a list of pictures you have already used in this project in the Project Explorer's Project tab. Expand the Resources node to see the list of images imported into this project. Right-click on an image in the tree view to display a context-sensitive menu including Add New Resource, Cut, Copy, Paste, Delete and Rename options. Right-click on either an image or the Resources node to import an image file here rather than within a Custom Ink Picture Element's properties.

 

With the Custom Ink Picture Element you can, if you wish, replace any configured background picture at runtime (or add a background picture if one hasn't already been selected) by browsing for an image using the Browse button.

Picture showing the Custom Ink Picture Element Browse Button.

You can also drag and drop a new image onto the form from within an opened browse dialog box to replace any configured background picture. This is useful if, for example, the form will be used by staff within different departments who may wish to change the image for identification purposes, or if a user needs to upload and annotate an image to illustrate something or to provide a record of an event. Once a replacement picture has been added, it can be removed by clicking the cross, Picture showing the Close Cross., next to the image name.